package com.dv.driverless.domain;

import java.util.Date;

import com.dv.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.dv.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 行车信息对象 equipment_crane
 *
 * @author ruoyi
 * @date 2023-04-06
 */
public class EquipmentCrane extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 行车编码 */
    @Excel(name = "行车编码")
    private String craneCode;

    /** 行车名称 */
    @Excel(name = "行车名称")
    private String craneName;

    /** 库区编码 */
    @Excel(name = "库区ID")
    private Long areaId;

    /** 状态[0正常 1停用] */
    @Excel(name = "状态[0正常 1停用]")
    private String status;

    /** 删除标志[0代表存在 1代表删除] */
    private String delFlag;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 行车接口 */
    @Excel(name = "行车接口")
    private String port;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCraneCode(String craneCode)
    {
        this.craneCode = craneCode;
    }

    public String getCraneCode()
    {
        return craneCode;
    }
    public void setCraneName(String craneName)
    {
        this.craneName = craneName;
    }

    public String getCraneName()
    {
        return craneName;
    }
    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId()
    {
        return areaId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setPort(String port)
    {
        this.port = port;
    }

    public String getPort()
    {
        return port;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("craneCode", getCraneCode())
            .append("craneName", getCraneName())
            .append("areaId", getAreaId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("port", getPort())
            .toString();
    }
}
